<!DOCTYPE html>
<html>
	<?php $this->load->view('html_header'); ?>
  <body class="background">
  	<?php
  		$feed_templates = array(
  			'/res/images/pop_feed_template_1.png',
  			'/res/images/pop_feed_template_2.png',
  			'/res/images/pop_feed_template_3.png',
  			'/res/images/pop_feed_template_4.png',
  			'/res/images/pop_feed_template_5.png'
  		);
  		$temp_idx = 0;
  	?>
  
		<?php foreach( $feeds as $feed ) : ?>
			<div id="feed" style="background: url(<?php echo $feed_templates[$temp_idx]; ?>) center left no-repeat; background-size: 100%;">
				<br>
				<div id="feed-title">
					<?php echo $feed['desc']; ?>
				</div>
				<a href="/feed/view/<?php echo $feed['id']; ?>">
					<img id="feed-image" src="<?php echo $feed['imageurl']; ?>"
						class="img-rounded">
				</a>	

				<?php if( ++$temp_idx == count($feed_templates) ) {
								$temp_idx = 0;
				}?>
				
				<!-- 
				<br><br>
				<div id="feed-progress">
					<div class="row-fluid progress progress-striped">
	  				<div class="bar" style="width: <?php echo $feed['progress']; ?>%;"></div>
	  			</div>
	  		</div>
				<div id="feed-dday" class="row-fluid">
					<?php echo $feed['dday']; ?>					
	  		</div>
				<div id="feed-like" class="row-fluid">
					<?php echo $feed['like']; ?>					
	  		</div>
				<div id="feed-funds" class="row-fluid">
					<?php echo $feed['funds']; ?>					
	  		</div>
	  		
				<div class="row-fluid">
					<div class="span3 offset5">
	  				<span class="muted summary">$</span>
						<span class="summary"><?php echo $feed['funds']; ?></span>
					</div>
					<div class="span2 offset1 summary">
						<span class="summary">D-<?php echo $feed['dday']; ?></span>
					</div>					
	  		</div>
	  		<div class="row-fluid">
					<div class="span3 offset5 summary">
						<span class="summary">
							<i class="icon-heart"></i><?php echo $feed['like']; ?>
						</span>
					</div>
					<div class="span2 offset1 summary">
						<span class="summary"><?php echo $feed['mybet']; ?></span>
					</div>					
	  		</div>
	  		-->	
	  	</div> 	 
	  	<br> 		
		<?php endforeach; ?>
  </body>
</html>